﻿@model trangbaocao.Models.Paramenter_Base_Dhsx
<div class="container_12">       
    <div class="grid_12">            
        <div class="module">
                <h2 align="right"><span><a href="@Url.Action("Parameter_Dhsx", "Manage_Dhsx", new { device_id = ViewBag.dhsx_id })">Quay lại</a></span></h2>                       
                <div class="module-body">
                @using (Html.BeginForm("Add_Parameter_Base", "Manage_Dhsx", FormMethod.Post))
                {                      
                    <div align="center"><h3>THÊM MỚI THUỘC TÍNH CƠ BẢN THIẾT BỊ <br /><p style="color: #660099; font-size:18px; margin-top:5px;">@ViewBag.NameDhsx</p></h3>
                        <div class="img-device-station-add" align="center"> 
                            <img src="@Url.Content("~/Content/Body/Images/Body_Images/Add_Device.png")" width="10%" />
                        </div>
                        
                    </div>
                    if (TempData["msg"] != null)
                    {                            
                        <span class="notification n-error">@TempData["msg"]</span>
                    }  
                    <p style="width:25%; float:left"></p> 
          <table> 
                    <div style="width:50%; text-align:center; float:left; margin-bottom:5px">
                    <p align="center">
                        <label style="width:55%; text-align:left;">Thuộc tính thiết bị:</label>
                        <div class="ma_he_thong" align="center" style="padding-left: 10px; width: 100%">
                            @Html.TextBoxFor(model => model.name_paramenter, new { @name = "name_paramenter", @class = "input-medium" })  
                            
                            <font color="red">(*)</font>  
                            <label style="width:60%; text-align:left;">
                                @Html.ValidationMessageFor(model => model.name_paramenter)
                            </label>                            
                        </div>                                                                     
                    </p> 
                    <p align="center">
                        <label style="width:55%; text-align:left;">Đặc tả:</label>
                        <div class="tendangnhap" align="center" style="padding-left: 10px; width: 100%">
                            @Html.TextBoxFor(model => model.unit, new { @name = "unit", @class = "input-medium" }) 
                                <font color="red">(*)</font>
                            <label style="width:60%; text-align:left;">
                                @Html.ValidationMessageFor(model => model.unit)
                            </label>  
                    </p>
                    <p align="center">
                        <label style="width:60%; text-align:left;">Kiểu dữ liệu</label>
                         <div class="ma_he_thong" align="center" style="margin-left: -22px; width: 100%">
                        <select name="datatype">
                            <option value="0" selected="selected">Ký tự</option>
                           <option value="1">Số</option>
                       </select>                   
                        </div>                                                                     
                    </p>
                    <p align="center">
                        <label style="width:60%; text-align:left;">Dung lượng tối đa</label>
                        <div class="ma_he_thong" align="center" style="margin-left: -22px; width: 100%">
                            @Html.TextBoxFor(model => model.value_max, new { @name = "value_max", @class = "input-medium" })   
                                                      
                        </div>                                                                     
                    </p>
                    <p align="center">
                        <label style="width:60%; text-align:left;">Mô tả</label>
                        <div class="ma_he_thong" align="center" style="margin-left: -22px; width: 100%">
                            @Html.TextBoxFor(model => model.notes, new { @name = "notes", @class = "input-medium" })                             
                        </div>                                                                     
                    </p>    
          </table>
                    <input type="hidden" name ="dhsx_id" value="@(ViewBag.dhsx_id)" />
                    <div class="button" align="center">
                        <p style="width:26%; text-align:center">
                        <input class="submit-green" type="submit" value="Thêm"/> 
                        <input class="submit-gray" type="reset" value="Hủy" />
                        </p>
                    </div>       
                }
              </div> <!-- End .module-body -->      
                
        </div>  <!-- End .module -->
        <div style="clear:both;"></div>
    </div> <!-- End .grid_12 --> 
    <div style="clear:both;"></div>
</div> <!-- End .container_12 -->
